
section {
    padding-top: 4vh;
    height: 100vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
  }
  
  .section-container {
    display: flex;
  }
  
  /* PROFILE SECTION */
  
  .section__pic-container {
    display: flex;
    height: 900px;
    width: 300px;
    margin: auto 0;
  }
  
  .section__text {
    align-self: center;
    text-align: center;
  }
  .title {
    font-size: 3rem;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  
  /* sobre_nosotros SECTION */
  
  #sobre_nosotros {
    position: relative;
  }
  
  .sobre_nosotros-containers {
    gap: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 50px;
  }
  
  .sobre_nosotros-details-container {
    justify-content: center;
    flex-direction: column;
    padding-left: 14vw;
  }
  
  .sobre_nosotros-containers,
  .sobre_nosotros-details-container {
    display: flex;
  }
  
  .sobre_nosotros-pic {
    border-radius: 10px;
  }
  
  .details-container {
    padding: 1rem;
    flex: 1;
    background: white;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    text-align: justify;
    height: auto;
    width: 350px;

  }
  .Titulo_tarjeta{
      text-align: center;
      margin-bottom: 15px;
  }
  .p_tarjeta{
      font-weight: 600;
      color: rgb(85, 85, 83);
  }
  span{
      color: #F2D411;
  }
  .section-container {
    gap: 4rem;
    height: 100%;
  }
  
  .section__pic-container {
    height: 550px;
    width: 400px;
    margin: auto 0px;
    top: 15px;
  }
  #leyenda_foto{
      color: rgb(158, 158, 167);
      position:absolute;
      top: 750px;
      text-align: left;
  }
  .texto_tarjeta{
    line-height: 26px;
    padding-bottom: 5px;
  }
  .texto_tarjeta_2{
    line-height: 22px;
    padding-bottom: 1px;
  }
  .texto_tarjeta, .texto_tarjeta_2 {
      color: #656464;
      margin: 10px 50px 80px;
  }
  @media (max-width: 1024px) {
    .section-container {
        flex-direction: column;
        align-items: center;
    }

    .section__pic-container {
        width: 80%;
        height: auto;
    }

    .section__text {
        text-align: center;
    }

    .sobre_nosotros-containers {
        flex-direction: column;
        align-items: center;
    }

    .details-container {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .section-container {
        padding: 10px;
    }

    .section__pic-container {
        width: 100%;
        height: auto;
    }

    .details-container {
        width: 90%;
        padding: 10px;
    }

    .title {
        font-size: 2rem;
    }
}

/* Media Query para tablets */
@media (max-width: 1024px) {
  .details-container {
      flex: 1 1 calc(50% - 2rem); /* Dos tarjetas por fila en tablets */
  }

  .Titulo_tarjeta {
      font-size: 1.4rem; /* Reducir el tamaño de la fuente en tablets */
  }

  .texto_tarjeta,
  .texto_tarjeta_2 {
      font-size: 0.9rem; /* Reducir el tamaño de la fuente en tablets */
  }
}

/* Media Query para móviles */
@media (max-width: 768px) {
  section {
      margin: 0 0.5rem; /* Reducir el margen en móviles */
  }

  .details-container {
      flex: 1 1 100%; /* Una tarjeta por fila en móviles */
      padding: 1rem; /* Reducir el padding en móviles */
  }

  .Titulo_tarjeta {
      font-size: 1.3rem; /* Reducir el tamaño de la fuente en móviles */
  }

  .texto_tarjeta,
  .texto_tarjeta_2 {
      font-size: 0.85rem; /* Reducir el tamaño de la fuente en móviles */
      margin: 10px 0; /* Reducir el margen en móviles */
  }
  .sobre_nosotros-details-container {
    padding-left: 0;
  }
}